//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core.Serialization;

namespace OpenLS.Spreadsheet
{
    public class SmartTagType: IOfficeXmlSerializable
    {

        private string _namespaceUri;

        public string NamespaceUri
        {
            get { return _namespaceUri; }
            set { _namespaceUri = value; }
        }

        private string _name;

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        private string _url;

        public string Url
        {
            get { return _url; }
            set { _url = value; }
        }
	
	


        #region IOfficeXmlSerializable Members

        void IOfficeXmlSerializable.ReadXml(ReadContext context)
        {
            using (ReadContext c = context.Read("smartTagType"))
            {
                NamespaceUri = c.GetOptionalString("namespaceUri");
                Name = c.GetOptionalString("name");
                Url = c.GetOptionalString("url");
            }
        }

        void IOfficeXmlSerializable.WriteXml(WriteContext context)
        {
            using (WriteContext c = context.Write("smartTagType"))
            {
                c.SetOptionalString("namespaceUri", NamespaceUri);
                c.SetOptionalString("name", Name);
                c.SetOptionalString("url", Url);
            }
        }

        #endregion
    }
}
